
<!-- 主页面开始 -->
<div id="main" class="main" >
    <SCRIPT LANGUAGE="JavaScript">
        <!--
        function listColumn(id){
            window.location = '__URL__/index/column_id/'+id;
        }
        function selectColumn(){
            var result= PopModalWindow('__APP__/Column/treeSelect/',268,365);
            if(typeof(result) == "undefined") return;
            $('columnName').value=result[0][0];
            $('column_id').value=result[0][1];
        }
  
        //-->
    </SCRIPT>
    <!-- 主体内容  -->
    <div class="content" >
        <div class="title">采购单入库</div>
        <!--  功能操作区域  -->
        <div class="operate" >
            <!-- 查询区域 -->
            <div class="fRig">

            </div>
            <!-- 高级查询区域 -->
            <div  id="searchM" class=" none search cBoth" >
            </div>
            </FORM>
        </div>
        <!-- 功能操作区域结束 -->
        <!-- 列表显示区域  -->
        <div class="list" >
        <form name="ruku" enctype="application/x-www-form-urlencoded" method="post"  action="__URL__/act_stockin" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
<table width="100%" border="0"><input type="hidden" name="id" value="{$vo.id}" /><input type="hidden" name="type" value="caigou" /><input type="hidden" name="purchaseid" value="{$vo.id}" />
<tr><td>采购单标题</td><td>{$vo.title}</td><td>采购单编号</td><td>{$vo.number}</td>
  <td>&nbsp;</td>
  </tr>
  <tr>
    <td>采购项目明细</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
  <tr>
    <td>产品名称</td>
    <td>产品编号</td>
    <td>进货价</td>
    <td>进货数量</td>
    <td>实际数量</td>
    </tr>
	<volist name="list" id="data">
  <tr id="{$data.id}"><input type="hidden" name="items[{$data.id}][id]"  value="{$data.id}"/>
    <td>{$data.product_name}<input type="hidden" name="items[{$data.id}][product_name]"  value="{$data.product_name}"/></td>
    <td>{$data.product_code}<input type="hidden" name="items[{$data.id}][product_code]"  value="{$data.product_code}"/></td>
    <td>{$data.price}<input type="hidden" name="items[{$data.id}][price]"  value="{$data.price}"/></td>
    <td>{$data.number}<input type="hidden" name="items[{$data.id}][number]"  value="{$data.number}"/></td>
    <td><input type="text" name="items[{$data.id}][realnumber]" /></td>
    </tr>
	</volist>
    <tr>
      <td>采购备注</td>
      <td>{$vo.note}</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      </tr>
    <tr>
      <td>运营部审核</td>
      <td><if condition="$vo.market_check eq 1">运营部已审核<else />运营部未审核</if></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      </tr>
    <tr>
      <td>财务部审核</td>
      <td><if condition="$vo.financial_check eq 1">财务部已审核<else />财务部未审核</if></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      </tr>    
    <tr>
      <td>仓库</td>
      <td><select name="store">
        <option value="0">总店</option>
        <option value="1">南翔</option>
        <option value="2">浦东</option>
      </select></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>入库日期</td>
      <td><input type="datetime" name="date" /></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>入库备注</td>
      <td><textarea name="note" rows="4" id="note"></textarea></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>入库状态</td>
      <td><select name="status" >
        <option value="1">入库成功</option>
        <option value="2">入库失败</option>
      </select>
      入库失败请在备注注明原因</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>入库单编号</td>
      <td>{$number}<input type="hidden" name="number" value="{$number}" /></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td><input type="submit" name="button" id="button" value="提交" />
      <input type="reset" name="button2" id="button2" value="重置" /></td>
    <td>&nbsp;</td>
    </tr>
</table>
</form>
        </div>
        <!--  分页显示区域 -->
        <div class="page"></div>
        <!-- 列表显示区域结束 -->
    </div>
    <!-- 主体内容结束 -->
</div>
<!-- 主页面结束 -->